package com.cqhilink.iot.jobstandardmanagement.dao.mapper;

import com.cqhilink.iot.jobstandardmanagement.facade.model.Valve;

import java.util.List;

public interface ValveMapper {
    /**
     * 根据ID物理删除
     *
     * @param valveId
     * @return
     */
    int deleteByPrimaryKey(String valveId);

    /**
     * 根据ID批量逻辑删除
     *
     * @param list
     * @return
     */
    int deleteListKey(List<String> list);

    /**
     * 添加
     *
     * @param record
     * @return
     */
    int insert(Valve record);

    /**
     * 非空添加
     *
     * @param record
     * @return
     */
    int insertSelective(Valve record);

    /**
     * 根据ID查询
     *
     * @param valveId
     * @return
     */
    Valve selectByPrimaryKey(String valveId);

    /**
     * 分页条数查询
     *
     * @param record
     * @return
     */
    int queryCount(Valve record);

    /**
     * 分页查询
     *
     * @param record
     * @return
     */
    List<Valve> queryList(Valve record);

    /**
     * 非空修改
     *
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Valve record);

    /**
     * 修改
     *
     * @param record
     * @return
     */
    int updateByPrimaryKey(Valve record);
}